package garbage;

import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.ClassInstanceCreation;
import org.eclipse.jdt.core.dom.MethodInvocation;
import org.eclipse.jdt.core.dom.TypeDeclaration;

public class MethodInvocationDetector extends ASTVisitor {

	@Override
	public boolean visit(MethodInvocation node) {
		System.out.println(node.getName().toString());
		System.out.println(node.getNodeType());
		return super.visit(node);
	}
	
	@Override
	public boolean visit(TypeDeclaration node) {
		System.out.println(node.getName().toString());
		System.out.println(node.getNodeType());
		return super.visit(node);
	}
	
}
